﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Inovout.Models
{
    /// <summary>
    /// 定义类的属性（属性名和类型）
    /// </summary>
    public abstract class DataStructuralPropertyObject : DataObject
    {
        /// <summary>
        /// 属性名
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// 属性对应的类型
        /// </summary>
        public abstract Type Type { get; }

        /// <summary>
        /// 字段是否是是主键
        /// </summary>
        public virtual bool IsPrimaryKey { get; set; }
    }
}
